﻿@model FCTC_Web.Models.VehicleEstimation

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>VehicleEstimation</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.VehicleID, "Vehicle")
        </div>
        <div class="editor-field">
            @Html.DropDownList("VehicleID", String.Empty)
            @Html.ValidationMessageFor(model => model.VehicleID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EstimatorID, "Estimator")
        </div>
        <div class="editor-field">
            @Html.DropDownList("EstimatorID", String.Empty)
            @Html.ValidationMessageFor(model => model.EstimatorID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.AppointmentStatus)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AppointmentStatus)
            @Html.ValidationMessageFor(model => model.AppointmentStatus)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Personal, "Personal")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PersonalID", String.Empty)
            @Html.ValidationMessageFor(model => model.PersonalID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UpdateTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UpdateTime)
            @Html.ValidationMessageFor(model => model.UpdateTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.UpdatedUser)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UpdatedUser)
            @Html.ValidationMessageFor(model => model.UpdatedUser)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.State)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.State)
            @Html.ValidationMessageFor(model => model.State)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Sequense)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Sequense)
            @Html.ValidationMessageFor(model => model.Sequense)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
